package bubble;

public class Bubble01 {
    public static void sort(int[] nums){
        for (int end = nums.length - 1; end > 0; end--) {
            for(int start = 0; start < end ;start++){
                if(nums[start] > nums[start+1]){
                    int temp = nums[start+1];
                    nums[start+1] = nums[start];
                    nums[start] = temp;
                }
            }
        }
    }
}
